package com.yuanfeng.business.controller;

import com.yuanfeng.business.dto.ShopDecorationPageAddDTO;
import com.yuanfeng.commoms.dto.userms.UserTokenBeanDTO;
import com.yuanfeng.commoms.util.ResponseResult;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 * @ClassName ShopDecorationController
 * @Description
 * @Author hyq
 * @Date 2023/8/4 9:58
 * @Version 1.0
 **/
@RestController
@RequestMapping("/shop/decoration")
public class ShopDecorationController extends BaseController{


    /**
     * 编辑或更新装修页面
     *
     * @param param
     * @return
     */
    @PostMapping("/page/add")
    public ResponseResult addShopDecorationPage(@RequestBody ShopDecorationPageAddDTO param) {
        ResponseResult result = shopDecorationService.addShopDecorationPage(param);
        return result;
    }


    /**
     * 查询装修页面
     *
     * @param param
     * @return
     */
    @PostMapping("/page/query")
    public ResponseResult queryShopDecorationPage(@RequestBody UserTokenBeanDTO param) {
        ResponseResult result = shopDecorationService.queryShopDecorationPage(param);
        return result;
    }
}
